package stu.aistar.model.pojo;


import java.io.Serializable;

/**
 * 本类用来演示: 统一返回给前端的json对象
 *
 * @author: success
 * @date: 2021/4/23 2:26 下午
 */

public class Result implements Serializable {
    private String code;

    private String msg;

    private Object result;

    public Result() {
    }

    public Result(String code, String msg, Object result) {
        this.code = code;
        this.msg = msg;
        this.result = result;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }

    @Override
    public String toString() {
        return "Result{" +
                "code='" + code + '\'' +
                ", msg='" + msg + '\'' +
                ", result=" + result +
                '}';
    }
}
